Optimal. Leaf size=193 \[ \frac {b c x \sqrt {-1+c^2 x^2}}{8 d \left (c^2 d+e\right ) \sqrt {c^2 x^2} \left (d+e x^2\right )}-\frac {a+b \csc ^{-1}(c x)}{4 e \left (d+e x^2\right )^2}-\frac {b c x \text {ArcTan}\left (\sqrt {-1+c^2 x^2}\right )}{4 d^2 e \sqrt {c^2 x^2}}+\frac {b c \left (3 c^2 d+2 e\right ) x \text {ArcTan}\left (\frac {\sqrt {e} \sqrt {-1+c^2 x^2}}{\sqrt {c^2 d+e}}\right )}{8 d^2 \sqrt {e} \left (c^2 d+e\right )^{3/2} \sqrt {c^2 x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.15, antiderivative size = 193, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 6, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.316, Rules used = {5345, 457, 105,
162, 65, 211} \begin {gather*} -\frac {a+b \csc ^{-1}(c x)}{4 e \left (d+e x^2\right )^2}-\frac {b c x \text {ArcTan}\left (\sqrt {c^2 x^2-1}\right )}{4 d^2 e \sqrt {c^2 x^2}}+\frac {b c x \left (3 c^2 d+2 e\right ) \text {ArcTan}\left (\frac {\sqrt {e} \sqrt {c^2 x^2-1}}{\sqrt {c^2 d+e}}\right )}{8 d^2 \sqrt {e} \sqrt {c^2 x^2} \left (c^2 d+e\right )^{3/2}}+\frac {b c x \sqrt {c^2 x^2-1}}{8 d \sqrt {c^2 x^2} \left (c^2 d+e\right ) \left (d+e x^2\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 65
Rule 105
Rule 162
Rule 211
Rule 457
Rule 5345
Rubi steps
\begin {align*} \int \frac {x \left (a+b \csc ^{-1}(c x)\right )}{\left (d+e x^2\right )^3} \, dx &=-\frac {a+b \csc ^{-1}(c x)}{4 e \left (d+e x^2\right )^2}-\frac {(b c x) \int \frac {1}{x \sqrt {-1+c^2 x^2} \left (d+e x^2\right )^2} \, dx}{4 e \sqrt {c^2 x^2}}\\ &=-\frac {a+b \csc ^{-1}(c x)}{4 e \left (d+e x^2\right )^2}-\frac {(b c x) \text {Subst}\left (\int \frac {1}{x \sqrt {-1+c^2 x} (d+e x)^2} \, dx,x,x^2\right )}{8 e \sqrt {c^2 x^2}}\\ &=\frac {b c x \sqrt {-1+c^2 x^2}}{8 d \left (c^2 d+e\right ) \sqrt {c^2 x^2} \left (d+e x^2\right )}-\frac {a+b \csc ^{-1}(c x)}{4 e \left (d+e x^2\right )^2}+\frac {(b c x) \text {Subst}\left (\int \frac {-c^2 d-e+\frac {1}{2} c^2 e x}{x \sqrt {-1+c^2 x} (d+e x)} \, dx,x,x^2\right )}{8 d e \left (c^2 d+e\right ) \sqrt {c^2 x^2}}\\ &=\frac {b c x \sqrt {-1+c^2 x^2}}{8 d \left (c^2 d+e\right ) \sqrt {c^2 x^2} \left (d+e x^2\right )}-\frac {a+b \csc ^{-1}(c x)}{4 e \left (d+e x^2\right )^2}-\frac {(b c x) \text {Subst}\left (\int \frac {1}{x \sqrt {-1+c^2 x}} \, dx,x,x^2\right )}{8 d^2 e \sqrt {c^2 x^2}}+\frac {\left (b c \left (3 c^2 d+2 e\right ) x\right ) \text {Subst}\left (\int \frac {1}{\sqrt {-1+c^2 x} (d+e x)} \, dx,x,x^2\right )}{16 d^2 \left (c^2 d+e\right ) \sqrt {c^2 x^2}}\\ &=\frac {b c x \sqrt {-1+c^2 x^2}}{8 d \left (c^2 d+e\right ) \sqrt {c^2 x^2} \left (d+e x^2\right )}-\frac {a+b \csc ^{-1}(c x)}{4 e \left (d+e x^2\right )^2}-\frac {(b x) \text {Subst}\left (\int \frac {1}{\frac {1}{c^2}+\frac {x^2}{c^2}} \, dx,x,\sqrt {-1+c^2 x^2}\right )}{4 c d^2 e \sqrt {c^2 x^2}}+\frac {\left (b \left (3 c^2 d+2 e\right ) x\right ) \text {Subst}\left (\int \frac {1}{d+\frac {e}{c^2}+\frac {e x^2}{c^2}} \, dx,x,\sqrt {-1+c^2 x^2}\right )}{8 c d^2 \left (c^2 d+e\right ) \sqrt {c^2 x^2}}\\ &=\frac {b c x \sqrt {-1+c^2 x^2}}{8 d \left (c^2 d+e\right ) \sqrt {c^2 x^2} \left (d+e x^2\right )}-\frac {a+b \csc ^{-1}(c x)}{4 e \left (d+e x^2\right )^2}-\frac {b c x \tan ^{-1}\left (\sqrt {-1+c^2 x^2}\right )}{4 d^2 e \sqrt {c^2 x^2}}+\frac {b c \left (3 c^2 d+2 e\right ) x \tan ^{-1}\left (\frac {\sqrt {e} \sqrt {-1+c^2 x^2}}{\sqrt {c^2 d+e}}\right )}{8 d^2 \sqrt {e} \left (c^2 d+e\right )^{3/2} \sqrt {c^2 x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 0.65, size = 385, normalized size = 1.99 \begin {gather*} \frac {1}{16} \left (-\frac {4 a}{e \left (d+e x^2\right )^2}+\frac {2 b c \sqrt {1-\frac {1}{c^2 x^2}} x}{d \left (c^2 d+e\right ) \left (d+e x^2\right )}-\frac {4 b \csc ^{-1}(c x)}{e \left (d+e x^2\right )^2}+\frac {4 b \text {ArcSin}\left (\frac {1}{c x}\right )}{d^2 e}+\frac {b \left (3 c^2 d+2 e\right ) \log \left (\frac {16 d^2 \sqrt {-c^2 d-e} \sqrt {e} \left (i \sqrt {e}+c \left (c \sqrt {d}-i \sqrt {-c^2 d-e} \sqrt {1-\frac {1}{c^2 x^2}}\right ) x\right )}{b \left (3 c^2 d+2 e\right ) \left (\sqrt {d}+i \sqrt {e} x\right )}\right )}{d^2 \left (-c^2 d-e\right )^{3/2} \sqrt {e}}+\frac {b \left (3 c^2 d+2 e\right ) \log \left (-\frac {16 d^2 \sqrt {-c^2 d-e} \sqrt {e} \left (-\sqrt {e}+c \left (-i c \sqrt {d}+\sqrt {-c^2 d-e} \sqrt {1-\frac {1}{c^2 x^2}}\right ) x\right )}{b \left (3 c^2 d+2 e\right ) \left (i \sqrt {d}+\sqrt {e} x\right )}\right )}{d^2 \left (-c^2 d-e\right )^{3/2} \sqrt {e}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(1795\) vs.
\(2(168)=336\).
time = 1.46, size = 1796, normalized size = 9.31
method | result | size |
derivativedivides | \(\text {Expression too large to display}\) | \(1796\) |
default | \(\text {Expression too large to display}\) | \(1796\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 430 vs.
\(2 (167) = 334\).
time = 0.63, size = 888, normalized size = 4.60 \begin {gather*} \left [-\frac {4 \, a c^{4} d^{4} + 8 \, a c^{2} d^{3} e + 4 \, a d^{2} e^{2} + {\left (3 \, b c^{2} d^{3} + 2 \, b x^{4} e^{3} + {\left (3 \, b c^{2} d x^{4} + 4 \, b d x^{2}\right )} e^{2} + 2 \, {\left (3 \, b c^{2} d^{2} x^{2} + b d^{2}\right )} e\right )} \sqrt {-c^{2} d e - e^{2}} \log \left (-\frac {c^{2} d - {\left (c^{2} x^{2} - 2\right )} e + 2 \, \sqrt {c^{2} x^{2} - 1} \sqrt {-c^{2} d e - e^{2}}}{x^{2} e + d}\right ) + 4 \, {\left (b c^{4} d^{4} + 2 \, b c^{2} d^{3} e + b d^{2} e^{2}\right )} \operatorname {arccsc}\left (c x\right ) + 8 \, {\left (b c^{4} d^{4} + b x^{4} e^{4} + 2 \, {\left (b c^{2} d x^{4} + b d x^{2}\right )} e^{3} + {\left (b c^{4} d^{2} x^{4} + 4 \, b c^{2} d^{2} x^{2} + b d^{2}\right )} e^{2} + 2 \, {\left (b c^{4} d^{3} x^{2} + b c^{2} d^{3}\right )} e\right )} \arctan \left (-c x + \sqrt {c^{2} x^{2} - 1}\right ) - 2 \, {\left (b c^{2} d^{3} e + b d x^{2} e^{3} + {\left (b c^{2} d^{2} x^{2} + b d^{2}\right )} e^{2}\right )} \sqrt {c^{2} x^{2} - 1}}{16 \, {\left (c^{4} d^{6} e + d^{2} x^{4} e^{5} + 2 \, {\left (c^{2} d^{3} x^{4} + d^{3} x^{2}\right )} e^{4} + {\left (c^{4} d^{4} x^{4} + 4 \, c^{2} d^{4} x^{2} + d^{4}\right )} e^{3} + 2 \, {\left (c^{4} d^{5} x^{2} + c^{2} d^{5}\right )} e^{2}\right )}}, -\frac {2 \, a c^{4} d^{4} + 4 \, a c^{2} d^{3} e + 2 \, a d^{2} e^{2} - {\left (3 \, b c^{2} d^{3} + 2 \, b x^{4} e^{3} + {\left (3 \, b c^{2} d x^{4} + 4 \, b d x^{2}\right )} e^{2} + 2 \, {\left (3 \, b c^{2} d^{2} x^{2} + b d^{2}\right )} e\right )} \sqrt {c^{2} d e + e^{2}} \arctan \left (\frac {\sqrt {c^{2} x^{2} - 1} \sqrt {c^{2} d e + e^{2}}}{c^{2} d + e}\right ) + 2 \, {\left (b c^{4} d^{4} + 2 \, b c^{2} d^{3} e + b d^{2} e^{2}\right )} \operatorname {arccsc}\left (c x\right ) + 4 \, {\left (b c^{4} d^{4} + b x^{4} e^{4} + 2 \, {\left (b c^{2} d x^{4} + b d x^{2}\right )} e^{3} + {\left (b c^{4} d^{2} x^{4} + 4 \, b c^{2} d^{2} x^{2} + b d^{2}\right )} e^{2} + 2 \, {\left (b c^{4} d^{3} x^{2} + b c^{2} d^{3}\right )} e\right )} \arctan \left (-c x + \sqrt {c^{2} x^{2} - 1}\right ) - {\left (b c^{2} d^{3} e + b d x^{2} e^{3} + {\left (b c^{2} d^{2} x^{2} + b d^{2}\right )} e^{2}\right )} \sqrt {c^{2} x^{2} - 1}}{8 \, {\left (c^{4} d^{6} e + d^{2} x^{4} e^{5} + 2 \, {\left (c^{2} d^{3} x^{4} + d^{3} x^{2}\right )} e^{4} + {\left (c^{4} d^{4} x^{4} + 4 \, c^{2} d^{4} x^{2} + d^{4}\right )} e^{3} + 2 \, {\left (c^{4} d^{5} x^{2} + c^{2} d^{5}\right )} e^{2}\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: RuntimeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {x\,\left (a+b\,\mathrm {asin}\left (\frac {1}{c\,x}\right )\right )}{{\left (e\,x^2+d\right )}^3} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________